const {register,login,avatar,info,logout} = require("../controller/user") 
const {auth,check} = require("../controller/common") 
module.exports = function(router){
    router.post("/register",register);
    router.post("/login",login);
    router.get("/info",auth,info)
    router.post("/logout",logout)
    router.post("/avatar/:userid",auth,check,avatar)
}